/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gameOnline.session;

import gameOnline.exception.ExistingPlayerException;
import gameOnline.persistance.Player;
import java.util.List;
import javax.ejb.Remote;

/**
 * Interface représentant la session d'un joueur
 * 
 * @author J. Harnetiaux
 * @version 1.0
 */
@Remote
public interface GameOnlineSessionRemote {
    public void persist(Object obj);

    public void remove(Object obj);

    public void merge(Object obj);

    public Player login(String login, String password);

    public void register(Player player) throws ExistingPlayerException;

    public List findAllPlayers();
    
    public List findConnectPlayers();
}
